home *** CD-ROM | disk | FTP | other *** search
/ Whiteline: Alpha / Whiteline Alpha.iso / linux / atari / source / source.lzh / atari-linux-0.01pl3 / drivers / char / Makefile < prev    next >
Encoding:
Makefile  |  1994-06-05  |  1.5 KB  |  85 lines

  1. # Makefile for 680x0 Linux chr_drv source directory
  2. #
  3. # Copyright 1993 by Hamish Macdonald
  4. #
  5. # This file is subject to the terms and conditions of the GNU General Public
  6. # License.  See the file "README.legal" in the main directory of this archive
  7. # for more details.
  8.  
  9. include ../../.config
  10. include ../../MakeVars
  11.  
  12. OBJS    = tty_io.o console.o keyboard.o \
  13.     tty_ioctl.o pty.o vt.o mem.o \
  14.     defkeymap.o
  15. SRCS    = tty_io.c console.c keyboard.c \
  16.     tty_ioctl.c pty.c vt.c mem.c \
  17.     defkeymap.c
  18.  
  19. ifdef CONFIG_ATIXL_BUSMOUSE
  20. M = y
  21. OBJS := $(OBJS) atixlmouse.o
  22. SRCS := $(SRCS) atixlmouse.c
  23. endif
  24.  
  25. ifdef CONFIG_BUSMOUSE
  26. M = y
  27. OBJS := $(OBJS) busmouse.o
  28. SRCS := $(SRCS) busmouse.c
  29. endif
  30.  
  31. ifdef CONFIG_PRINTER
  32. OBJS := $(OBJS) lp.o
  33. SRCS := $(SRCS) lp.c
  34. endif
  35.  
  36. ifdef CONFIG_MS_BUSMOUSE
  37. M = y
  38. OBJS := $(OBJS) msbusmouse.o
  39. SRCS := $(SRCS) msbusmouse.c
  40. endif
  41.  
  42. ifdef CONFIG_QUICKPORT_MOUSE
  43. CONFIG_PSMOUSE = CONFIG_PSMOUSE
  44. endif
  45.  
  46. ifdef CONFIG_PSMOUSE
  47. M = y
  48. OBJS := $(OBJS) psaux.o
  49. SRCS := $(SRCS) psaux.c
  50. endif
  51.  
  52. ifdef CONFIG_TAPE_QIC02
  53. OBJS := $(OBJS) tpqic02.o 
  54. SRCS := $(SRCS) tpqic02.c
  55. endif
  56.  
  57. ifdef M
  58. OBJS := $(OBJS) mouse.o
  59. SRCS := $(SRCS) mouse.c
  60. endif
  61.  
  62. ifdef CONFIG_ATARI
  63. OBJS := $(OBJS) atari_serial.o atari_MFPser.o atari_SCC.o
  64. SRCS := $(SRCS) atari_serial.c atari_MFPser.c atari_SCC.c
  65. endif
  66.  
  67. all: char.a
  68.  
  69. char.a: $(OBJS)
  70.     $(AR) rcs char.a $(OBJS)
  71.     sync
  72.  
  73. clean:
  74.     $(RM) $(RMFLAGS) *.o *.a
  75.  
  76. dep:
  77.     $(CPP) -M $(INCFLAGS) $(SRCS) > .depend
  78.  
  79. #
  80. # include a dependency file if one exists
  81. #
  82. ifeq (.depend,$(wildcard .depend))
  83. include .depend
  84. endif
  85.